/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 任务组管理Entity
 * @author fanqinglong
 * @version 2017-04-25
 */
public class TaskGroup extends DataEntity<TaskGroup> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 任务组名称
	private Project project;		// 所属项目id
	
	private Integer taskQuantity; // 任务数量
	private Integer stillQuantity; // 未完成任务数量
	
	public TaskGroup() {
		super();
	}

	public TaskGroup(String id){
		super(id);
	}

	@Length(min=0, max=64, message="任务组名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Integer getTaskQuantity() {
		return taskQuantity;
	}

	public void setTaskQuantity(Integer taskQuantity) {
		this.taskQuantity = taskQuantity;
	}

	public Integer getStillQuantity() {
		return stillQuantity;
	}

	public void setStillQuantity(Integer stillQuantity) {
		this.stillQuantity = stillQuantity;
	}
}